import Vue from 'vue'
import VueRouter from 'vue-router'
import home from '../views/home/home.vue'
import power from '../views/power.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: "/",
    // redirect: "/pictureIndex/fisheryPicture",
    redirect: "/home",
    // redirect: "/authLogin",
    meta: { open:  true },
  },
  {
    path: '/power',
    // name: 'powerfulTownIndex',
    component: power,
    children: [
      // 图
      {
        path: '/home',
        component: home,
      },
    ]
  },
  {
    path: '/about',
    name: 'about',
    component: (resolve) => require([ '../views/About.vue'],resolve),
    children: [
      // 图
      {
        path: '/homeView',
        component: resolve => require(['../views/test01/home.vue'], resolve),
      },
    ]
  }
]

const router = new VueRouter({
  mode: 'hash',
  base: '',
  routes
})

export default router
